package Examples;


import homomorphism.list.ListHomomorphism;
import org.apache.hadoop.io.LongWritable;

/**
 *
 * @author liuyu
 */
public class SUM extends ListHomomorphism<LongWritable, LongWritable> {

    @Override
    public LongWritable filter(LongWritable val) {
        LongWritable a = val;
        return a;
    }

    @Override
    public LongWritable plus(LongWritable a, LongWritable b) {
        return new LongWritable(a.get() + b.get());
    }
}
